<?php


namespace App\Consts;

/**
 * 全局消息常量
 * @author dumpling
 */
class GlobalMessageConst
{
    // 公告1听君运营团队，2听君站务
    public const ANNOUNCE_TYPE_OPERATING = 1;
    public const ANNOUNCE_TYPE_JUDICIAL  = 2;

    // 极光推送类型 1通知 2自定义
    public const JPUSH_TYPE_NOTICE = 1;
    public const JPUSH_TYPE_CUSTOM = 2;

    public static $messageType = [
        self::COUNT_TYPE_LIKE => 'like',
        self::COUNT_TYPE_COLLECT => 'collect',
        self::COUNT_TYPE_COMMENT => 'comment',
        self::COUNT_TYPE_OPERATING => 'operating',
        self::COUNT_TYPE_JUDICIAL => 'judicial',
    ];

    // 是否已读，0否，1是
    public const IS_NOT_READ = 0;
    public const IS_READ = 1;

    // 消息类型，1评论，2回复
    public const MSG_TYPE_COMMENT = 1;
    public const MSG_TYPE_REPLY = 2;

    // 是否完成静态化，0否，1是
    public const IS_NOT_STATIC = 0;
    public const IS_STATIC = 1;

    // 消息类型，0公告，1点赞，2收藏，3评论/回复
    public const COUNT_TYPE_ALL = -1;
    public const COUNT_TYPE_LIKE = 1;
    public const COUNT_TYPE_COLLECT = 2;
    public const COUNT_TYPE_COMMENT = 3;
    public const COUNT_TYPE_OPERATING = 4;
    public const COUNT_TYPE_JUDICIAL = 5;
}
